package com.kgcx.price.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;

/**
 * MileageRecord 里程记录实体类
 *
 * @author:zml
 * @date:2017/11/16
 */
@Data
@ApiModel(value = "MileageRecord", description = "里程记录实体类")
@Table(name="t_mileage_record")
public class MileageRecord {

    @ApiModelProperty(value="主键ID",name="kid",example="1")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long kid;

    @ApiModelProperty(value="订单编号【必填】",name="orderId", required=true)
    private String orderId;
    @ApiModelProperty(value="开始里程【上传开始里程时必填】",name="startMileage")
    private Long startMileage;
    @ApiModelProperty(value="结束里程【上传结束里程时必填】",name="endMileage")
    private Long endMileage;
    @ApiModelProperty(value="关联车辆id【必填】",name="carId", required=true)
    private String carId;
    @ApiModelProperty(value="上传司机id【必填】",name="driverId")
    private String driverId;
    @ApiModelProperty(value="创建时间",name="createTime")
    private Timestamp createTime;
    @ApiModelProperty(value=" 状态 101:启用 102:禁用 103:删除 ",name="status")
    private Integer status;

    @Transient
    private Long address;

    @Transient
    private String vehicleNo;

    @Transient
    private Long tatalMile;

}